#include "mylibrary.h"
#include "librarymanagement.h"
#include <QApplication>
#include <QSqlDatabase>
#include <QMessageBox>
#include <QSqlError>
#include <QDebug>
int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
    QSqlDatabase db = QSqlDatabase::addDatabase("QSQLITE");
    db.setDatabaseName("F:/Mydatabase/myLibrary_copy.db");
    if(!db.open())
    {
        QMessageBox::critical(0,"Open database",
                              db.lastError().text());
        return 1;
    }
    qDebug() << db.tables();

    myLibrary w;
    w.show();

    return a.exec();
}
